//
//  HYFolderMoveListCell.m
//  XPlayer
//
//  Created by liguoqing on 2023/9/19.
//

#import "HYFolderMoveListCell.h"

@interface HYFolderMoveListCell ()

@property (nonatomic, strong) UIImageView *selectImgView;

@end

@implementation HYFolderMoveListCell

- (void)configUI
{
    [super configUI];
    self.setBtn.hidden = YES;
    [self.contentView addSubview:self.selectImgView];
    [self.selectImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.centerY.equalTo(self.contentView);
        make.width.height.mas_equalTo(24);
    }];
}

- (void)bindViewModel:(HYHomeFileItemViewModel *)vm
{
    [super bindViewModel:vm];
    self.selectImgView.image = [UIImage imageNamed:vm.isSelect?@"icon_folder_selected":@"icon_folder_unselected"];
}

- (UIImageView *)selectImgView
{
    if(!_selectImgView){
        _selectImgView = [[UIImageView alloc]init];
    }
    return _selectImgView;
}

@end
